package com.ruoyi.supermarket.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 超市商品信息对象 supermarket_commodity
 * 
 * @author faye
 * @date 2024-05-25
 */
public class SupermarketCommodity extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 商品编号 */
    @Excel(name = "商品编号")
    private Long commodityId;

    /** 商品名 */
    @Excel(name = "商品名")
    private String commodityName;

    /** 类型 */
    @Excel(name = "类型")
    private String commodityType;

    /** 单价 */
    @Excel(name = "单价")
    private Double unitPrice;

    public void setCost(Double cost) {
        this.cost = cost;
    }

    /** 进价 */
    @Excel(name = "进价")
    private Double cost;

    /** 规格 */
    @Excel(name = "规格")
    private String specification;

    /** 库存量 */
    @Excel(name = "库存量")
    private Long quantity;

    /** 预警值 */
    @Excel(name = "预警值")
    private Long warnValue;

    /** 计划量 */
    @Excel(name = "计划量")
    private Long planValue;

    /** 状态 */
    @Excel(name = "状态")
    private String status;

    /** 图片 */
    @Excel(name = "图片")
    private String commodityImage;

    public void setCommodityImage(String commodityImage)
    {
        this.commodityImage = commodityImage;
    }

    public String getCommodityImage()
    {
        return commodityImage;
    }

    public void setCommodityId(Long commodityId) 
    {
        this.commodityId = commodityId;
    }

    public Long getCommodityId() 
    {
        return commodityId;
    }
    public void setCommodityName(String commodityName) 
    {
        this.commodityName = commodityName;
    }

    public String getCommodityName() 
    {
        return commodityName;
    }
    public void setCommodityType(String commodityType) 
    {
        this.commodityType = commodityType;
    }

    public String getCommodityType() 
    {
        return commodityType;
    }
    public void setUnitPrice(Double unitPrice)
    {
        this.unitPrice = unitPrice;
    }

    public Double getUnitPrice()
    {
        return unitPrice;
    }

    public Double getCost()
    {
        return cost;
    }
    public void setSpecification(String specification) 
    {
        this.specification = specification;
    }

    public String getSpecification() 
    {
        return specification;
    }
    public void setQuantity(Long quantity) 
    {
        this.quantity = quantity;
    }

    public Long getQuantity() 
    {
        return quantity;
    }
    public void setWarnValue(Long warnValue) 
    {
        this.warnValue = warnValue;
    }

    public Long getWarnValue() 
    {
        return warnValue;
    }
    public void setPlanValue(Long planValue) 
    {
        this.planValue = planValue;
    }

    public Long getPlanValue() 
    {
        return planValue;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("commodityId", getCommodityId())
            .append("commodityName", getCommodityName())
            .append("commodityType", getCommodityType())
            .append("unitPrice", getUnitPrice())
            .append("cost", getCost())
            .append("specification", getSpecification())
            .append("quantity", getQuantity())
            .append("warnValue", getWarnValue())
            .append("planValue", getPlanValue())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("commodityImage", getCommodityImage())
            .toString();
    }
}
